
/**
 *
 * 默认路由
 *
 **/
export const default_routes = [
  { path: '/', redirect: '/login' },
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/admin/Login')
  },

  {
    path: '/',
    name: 'Main',
    component: () => import('@/views/Main')
  },

]

/**
 *
 * 所有主要内容路由
 *
 * 注意：此处的【name】请勿随意修改，如有修改需求，请与后端开发人员沟通后进行统一修改
 *
 *
 **/
export const all_routes = [
  {
    path: 'home',
    name: 'Home',
    meta: {
      breadcrumb: ['首页']
    },
    component: () => import('@/views/Home')
  },
  {
    path: 'member/list',
    name: 'MEMBER_LIST',
    meta: {
      breadcrumb: ['用户管理', '会员列表']
    },
    component: () => import('@/views/user/member/Table')
  },
  {
    path: 'empolyee/list',
    name: 'EMPLOYEE_LIST',
    meta: {
      breadcrumb: ['用户管理', '员工列表']
    },
    component: () => import('@/views/user/empolyee/Table')
  },
  {
    path: 'appointment/type/list',
    name: 'APPOINTMENT_TYPE_LIST',
    meta: {
      breadcrumb: ['预约服务管理', '预约服务分类']
    },
    component: () => import('@/views/subscribe/type/Table')
  },
  {
    path: 'appointment/list',
    name: 'APPOINTMENT_SERVICE_LIST',
    meta: {
      breadcrumb: ['预约服务管理', '预约服务列表']
    },
    component: () => import('@/views/subscribe/list/Table')
  },
  {
    path: 'appointment/order/list',
    name: 'APPOINTMENT_ORDER_LIST',
    meta: {
      breadcrumb: ['预约服务管理', '预约服务订单']
    },
    component: () => import('@/views/subscribe/order/Table')
  },
  {
    path: 'goods/type/list',
    name: 'GOODS_TYPE_LIST',
    meta: {
      breadcrumb: ['商铺管理', '商品分类']
    },
    component: () => import('@/views/shop/type/Table')
  },
  {
    path: 'goods/list',
    name: 'GOODS_LIST',
    meta: {
      breadcrumb: ['商铺管理', '商品管理']
    },
    component: () => import('@/views/shop/goods/Table')
  },
  {
    path: 'commnet/list',
    name: 'COMMENT_LIST',
    meta: {
      breadcrumb: ['商铺管理', '评论管理']
    },
    component: () => import('@/views/shop/comment/Table')
  },
  {
    path: 'order/list',
    name: 'ORDER_LIST',
    meta: {
      breadcrumb: ['商铺管理', '订单管理']
    },
    component: () => import('@/views/shop/order/Table')
  }
  
]

/**
 *
 * 错误处理路由
 *
 **/
export const error_routes = [
  {
    path: '*',
    name: 'Page404',
    component: () => import('@/views/error/Page404')
  }
]
